Optimal. Leaf size=44 \[ -\frac {b \cos ^4(c+d x)}{4 d}+\frac {a \sin (c+d x)}{d}-\frac {a \sin ^3(c+d x)}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 44, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {2747, 655}
\begin {gather*} -\frac {a \sin ^3(c+d x)}{3 d}+\frac {a \sin (c+d x)}{d}-\frac {b \cos ^4(c+d x)}{4 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 655
Rule 2747
Rubi steps
\begin {align*} \int \cos ^3(c+d x) (a+b \sin (c+d x)) \, dx &=\frac {\text {Subst}\left (\int (a+x) \left (b^2-x^2\right ) \, dx,x,b \sin (c+d x)\right )}{b^3 d}\\ &=-\frac {b \cos ^4(c+d x)}{4 d}+\frac {a \text {Subst}\left (\int \left (b^2-x^2\right ) \, dx,x,b \sin (c+d x)\right )}{b^3 d}\\ &=-\frac {b \cos ^4(c+d x)}{4 d}+\frac {a \sin (c+d x)}{d}-\frac {a \sin ^3(c+d x)}{3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 44, normalized size = 1.00 \begin {gather*} -\frac {b \cos ^4(c+d x)}{4 d}+\frac {a \sin (c+d x)}{d}-\frac {a \sin ^3(c+d x)}{3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.19, size = 36, normalized size = 0.82
method | result | size |
derivativedivides | \(\frac {-\frac {b \left (\cos ^{4}\left (d x +c \right )\right )}{4}+\frac {a \left (2+\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )}{3}}{d}\) | \(36\) |
default | \(\frac {-\frac {b \left (\cos ^{4}\left (d x +c \right )\right )}{4}+\frac {a \left (2+\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )}{3}}{d}\) | \(36\) |
risch | \(\frac {3 a \sin \left (d x +c \right )}{4 d}-\frac {b \cos \left (4 d x +4 c \right )}{32 d}+\frac {a \sin \left (3 d x +3 c \right )}{12 d}-\frac {b \cos \left (2 d x +2 c \right )}{8 d}\) | \(59\) |
norman | \(\frac {\frac {2 a \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{d}+\frac {10 a \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 d}+\frac {10 a \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 d}+\frac {2 a \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}+\frac {2 b \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}+\frac {2 b \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{4}}\) | \(118\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 48, normalized size = 1.09 \begin {gather*} -\frac {3 \, b \sin \left (d x + c\right )^{4} + 4 \, a \sin \left (d x + c\right )^{3} - 6 \, b \sin \left (d x + c\right )^{2} - 12 \, a \sin \left (d x + c\right )}{12 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 39, normalized size = 0.89 \begin {gather*} -\frac {3 \, b \cos \left (d x + c\right )^{4} - 4 \, {\left (a \cos \left (d x + c\right )^{2} + 2 \, a\right )} \sin \left (d x + c\right )}{12 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.17, size = 60, normalized size = 1.36 \begin {gather*} \begin {cases} \frac {2 a \sin ^{3}{\left (c + d x \right )}}{3 d} + \frac {a \sin {\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{d} - \frac {b \cos ^{4}{\left (c + d x \right )}}{4 d} & \text {for}\: d \neq 0 \\x \left (a + b \sin {\left (c \right )}\right ) \cos ^{3}{\left (c \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 6.14, size = 48, normalized size = 1.09 \begin {gather*} -\frac {3 \, b \sin \left (d x + c\right )^{4} + 4 \, a \sin \left (d x + c\right )^{3} - 6 \, b \sin \left (d x + c\right )^{2} - 12 \, a \sin \left (d x + c\right )}{12 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.06, size = 46, normalized size = 1.05 \begin {gather*} \frac {-\frac {b\,{\sin \left (c+d\,x\right )}^4}{4}-\frac {a\,{\sin \left (c+d\,x\right )}^3}{3}+\frac {b\,{\sin \left (c+d\,x\right )}^2}{2}+a\,\sin \left (c+d\,x\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________